<admintpl file="header_adminlte" />
</head>

<body>

	<div class="row  js-check-wrap">
		<div class="col-xs-12">
			<ul class="nav nav-tabs" style="margin-bottom:10px;">
				<php>
					$all_is_active = $status == 'all' ? ' class="active"' : ''; 
					$handled_is_active = $status == 'handled' ? ' class="active"' : '';
					$handleing_is_active = $status == 'handleing' ? ' class="active"' : '';
				</php>
				<li{$all_is_active}>
					<a href="{:U('Weibo/AdminReport/index')}">举报列表</a>
				</li>
				<li{$handled_is_active}>
					<a href="{:U('Weibo/AdminReport/index','status=handled')}">已处理</a>
				</li>
				<li{$handleing_is_active}>
					<a href="{:U('Weibo/AdminReport/index','status=handleing')}">未处理</a>
				</li>
			</ul>

			<div class="box-body table-responsive no-padding">
				<form class="js-ajax-form" method="post">

					<div class="table-actions" style="margin-bottom: 10px;">
						<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="#" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
					</div>

					<table class="table table-hover table-bordered table-list">
						<thead>
							<tr>
								<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
								<th width="15">ID</th>
								<th width="80">举报人员ID</th>
								<th width="100">被举报对象</th>
								<th width="100">举报类型</th>
								<th width="50">举报分类</th>
								<th width="200">举报描述</th>
								<th width="50">举报时间</th>
								<th width="50">站方反馈</th>
								<th width="50">反馈时间</th>
								<th width="50">处理状态</th>
								<th width="50">操作</th>
							</tr>
						</thead>

						<volist name="list" id="list">
							<tr>
								<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$list['report_id']}" title="ID:{$list['report_id']}"></td>
								<td>{$list['report_id']}</td>
								<td><a href="{$list['user_id']}">{$list['nickname']}</a><!--TODO 用户点击链接--></td>
								<td>{$list['object_id']}</td>
								<td>
									<if condition="($list.type eq 1) "> <label class="label label-primary">微博</label>
										<elseif condition="$list.type eq 2" /><label class="label label-success">评论</label>
										<elseif condition="$list.type eq 3" /><label class="label label-info">用户</label>
										<elseif condition="$list.type eq 4" /><label class="label label-warning">群组</label>
									</if>
								</td>
								<td>{$list['cate_name']}</td>
								<td>{$list['description']}</td>
								<td>{$list['report_time']|date="Y-m-d",###}</td>
								<td>
									<if condition="($list.feedback neq '')"><label class="label label-primary">已反馈</label>
										<else /><span class="label label-success">未反馈</span>
									</if>
								</td>
								<td>{$list['feedback_time']|date="Y-m-d",###}</td>
								<td>
									<if condition="$list.status eq 0"> <label class="label label-warning">未处理</label>
										<elseif condition="$list.status eq 1" /><label class="label label-success">已处理</label>
									</if>
								</td>
								<td>
									<div class="btn-group">
										<a href="{:U('AdminReport/edit','report_id='.$list['report_id'])}" class="btn btn-info"><i class="fa fa-pencil"></i> 编辑</a>
										<a href="{:U('AdminReport/delete','report_id='.$list['report_id'])}" class="btn btn-danger js-ajax-delete "><i class="fa fa-trash"></i> 删除</a>
									</div>
								</td>
							</tr>
						</volist>
					</table>

					<div class="table-actions" style="margin-bottom: 10px;">
						<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="#" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
					</div>

					<nav>
						<ul class="pagination">
							{$page}
						</ul>
					</nav>

				</form>
			</div>
			<!-- /.box-body -->

		</div>
	</div>

	<script src="__PUBLIC__/js/common.js"></script>
	<script src="__PUBLIC__/js/newthink.js"></script>
</body>

</html>